<?php


namespace app\api\services;


use app\admin\model\HtnsActivity;

class HtnsAdminService
{
    use ApiTrait;

    /**
     * @desc 获取商品参与活动列表
     * @param string $type 类型,admin:后台请求接口,api:普通api请求
     */
    public function activityList($type = 'api')
    {
        $where['status'] = 1;
        $where['delete_time'] = 0;
        $res = HtnsActivity::where($where)->order('id desc')->select()->toArray();
        return $res;
    }
}